<template>
	<view @click.stop="close()" style="width:400rpx;position:fixed;z-index: 20000;" :style="{top:`${rect.bottom}px`,left:`${rect.left-120}px`}">
		<image v-if="add" src="https://ymjcos.weimahl.com/image/admin/2023/07/25/45a799430369467c9ff59700c3573a04lgri514cdv.png" 
		mode="widthFix" style="width: 100%;display: block;"></image>
	</view>
</template>

<script>
	export default{
		props:{
			
		},
		data(){
			return{
				add:true,
				rect:{}
			}
		},
		onReady() {
			this.rect = uni.getMenuButtonBoundingClientRect();
			console.log();
			wx.checkIsAddedToMyMiniProgram({ success: res => {
				 this.add = !res.added
			} });
		},
		methods: {
			close(){
				this.add = false
				console.log(this.add);
			}
		}
	}
</script>

<style>
</style>